using rsync;
using UnityEngine;

namespace Demo.VectorWar
{
    public class VectorWarGameManager : RsyncManager
    {
        public void OnEnable()
        {
            VectorWar._bounds = new Rect(0,0,Screen.width,Screen.height);
        }
        public new void OnDisable()
        {
            CloseGame();
        }

        public override void OnlineGame(uint maxPlayers, uint ID)
        {
            StartOnlineGame(new VectorWar((int)maxPlayers), maxPlayers, ID);
        }

        public override void LocalGame(uint maxPlayers)
        {
            StartOfflineGame(new VectorWar((int)maxPlayers), maxPlayers);
        }
    }
}
